﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SArenaCrossBattles extends IMessageBase
    {
        public var code:int;
        public var battles:Array;
        public const _type:int = 7011;
        public static var _regist:SArenaCrossBattles = new SArenaCrossBattles(true);

        public function SArenaCrossBattles(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SArenaCrossBattles();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.code);
            SeqSArenaCrossBattleHelper.write(param1, this.battles);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.code = param1.readInt();
            this.battles = SeqSArenaCrossBattleHelper.read(param1);
            return;
        }// end function

    }
}
